#include "gamemode.h"

namespace infinity {

inline GameMode::GameMode(const char* name)
{
	dwAssert(name != NULL, "GameMode's name is not valid");
	dwAssert(strnlen_s(name, NAME_MAX_LENGTH) < NAME_MAX_LENGTH, "GameMode's name is too long");

	strncpy_s(m_name, name, NAME_MAX_LENGTH);
	m_name[NAME_MAX_LENGTH - 1] = 0;
}

inline const char* GameMode::getName() const
{
	return m_name;
}

} // namespace infinity
